const formatDateHelper = {}

// 转换日期为yyyy-mm-dd格式

formatDateHelper.date = function() {
	const now = new Date();
	const year = now.getFullYear();
	const month = String(now.getMonth() + 1).padStart(2, '0'); // 月份是从 0 开始的，所以需要加 1
	const day = String(now.getDate()).padStart(2, '0');
	
	return `${year}-${month}-${day}`;
}

module.exports = formatDateHelper;